<div class="orgaos index">
	<div id="ufs_title">
		
		<div id="img_search" style=" width: 100%; height: 70px; display:table; margin-bottom: 0px; " >
			<div style="float: left; position:relative; width: 30%; margin-bottom: 0px;">
				<h2 style="text-align: left;"><?php echo __('Órgãos'); ?></h2>
			</div>
			
			<div style="float: left; position:relative; width: 50%; margin-bottom: 0px; margin-top: 0px;">
		        <form method="post" action="/site/orgaos/index" class="formSearchPrev">
		           
		           <input name="data[Orgao][nome]" maxlength="80" value="<?php echo $defaultsearchtext; ?>" type="text" placeholder="Digite sua busca..."/>
					
		          <input type="submit" value="Buscar" />
		        </form>
			</div>
			
			<div style="float: left; position:relative; width: 20%; margin-bottom: 0px;">
				<div class="actions" style=" width: 80%;">
					<?php echo $this->Html->link(__('Novo Órgão'), array('action' => 'add')); ?>
				</div>
			</div>	
		</div>
	</div>
	<table cellpadding="0" cellspacing="0">
	<tr>
			<th width="40"><?php echo $this->Paginator->sort('id', 'Cód.'); ?></th>
			<th><?php echo $this->Paginator->sort('nome', 'Nome'); ?></th>
			<th align="center"><?php echo $this->Paginator->sort('abreviacao', 'Abreviação'); ?></th>
			<th align="center" width="170"><?php echo $this->Paginator->sort('modified', 'Modificado'); ?></th>
			<th align="center" class="actions"><?php echo __('Ações'); ?></th>
	</tr>
	<?php
	foreach ($orgaos as $orgao): ?>
	<tr>
		<td><?php echo h($orgao['Orgao']['id']); ?>&nbsp;</td>
		<td><?php echo h($orgao['Orgao']['nome']); ?>&nbsp;</td>
		<td align="center"><?php echo h($orgao['Orgao']['abreviacao']); ?>&nbsp;</td>
		<td align="center"><?php echo h($orgao['Orgao']['modified']); ?>&nbsp;</td>
		<td class="actions">
			<?php echo $this->Html->link(__('Exibir'), array('action' => 'view', $orgao['Orgao']['id'])); ?>
			<?php echo $this->Html->link(__('Editar'), array('action' => 'edit', $orgao['Orgao']['id'])); ?>
			<?php echo $this->Form->postLink(__('Excluir'), array('action' => 'delete', $orgao['Orgao']['id']), null, __('Tem certeza que deseja excluir o Órgão: '.$orgao['Orgao']['nome'].'?', $orgao['Orgao']['id'])); ?>
		</td>
	</tr>
<?php endforeach; ?>
	</table>
	<p>
	<?php
	echo $this->Paginator->counter(array(
	'format' => __('Página {:page} de {:pages}, paginando {:current} registros de um total de {:count}, iniciando em {:start}, e finalizando em {:end}')
	));
	?>	</p>

	<div class="paging">
	<?php
		echo $this->Paginator->first(__('<<', true), array('class' => 'number-first'));
		echo $this->Paginator->prev(__('<'), array(), null, array('class' => 'prev disabled'));
		echo $this->Paginator->numbers(array('separator' => ''));
		echo $this->Paginator->next(__('>'), array(), null, array('class' => 'next disabled'));
		echo $this->Paginator->last(__('>>', true), array('class' => 'number-end'));
	?>
	</div>
</div>
<div class="main_menu_div">
	<h3><?php echo $this->Html->link('HOME', array('controller' => 'adm', 'action' => 'index')); ?></h3>
	<ul id="accordion">
		<li id="main_menu">Cadastro</li>
		<ul>
			<li><?php echo $this->Html->link(__('Anexos E-mail'), array('controller' => 'anexoemails', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Arquivos de Termos'), array('controller' => 'arquivotermos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Bancos'), array('controller' => 'bancos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Categorias'), array('controller' => 'categorias', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Corretores'), array('controller' => 'corretors', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Entidades'), array('controller' => 'entidades', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Estados'), array('controller' => 'ufs', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Estado Civil'), array('controller' => 'estadocivils', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Formas de Pagamento'), array('controller' => 'fpagamentos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Imagens'), array('controller' => 'imagems', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Operadoras'), array('controller' => 'operadoras', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Operadoras Detalhes'), array('controller' => 'operadoradetalhes', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Órgãos'), array('controller' => 'orgaos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Parcelas'), array('controller' => 'parcelas', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Parentesco'), array('controller' => 'parentescos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Perfil Servidor'), array('controller' => 'perfilservidors', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Profiles'), array('controller' => 'profiles', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Planos de Saúde'), array('controller' => 'planosaudes', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Preços'), array('controller' => 'precos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Sindicatos'), array('controller' => 'sindicatos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Situação Servidor'), array('controller' => 'statusservidors', 'action' => 'index')); ?> </li>
			
		</ul>
		<li id="main_menu">Vínculos</li>
		<ul>
			<li><?php echo $this->Html->link(__('Entidades'), array('controller' => 'vinc_entidades', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Formas de Pagamento'), array('controller' => 'vinc_pagamentos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Parentescos'), array('controller' => 'vinc_parentescos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Sindicato'), array('controller' => 'vinc_sindicatos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Odontológico'), array('controller' => 'vinc_odontologicos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Estados'), array('controller' => 'vinc_ufs', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Categorias'), array('controller' => 'vinc_categorias', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Órgãos'), array('controller' => 'vinc_orgaos', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Corretores'), array('controller' => 'vinc_corretors', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Limpar Vínculos'), array('controller' => 'vinc_clears', 'action' => 'index')); ?> </li>
			
		</ul>
		<li id="main_menu">Relatórios</li>
		<ul>
			<li><?php echo $this->Html->link(__('Cadastrados'), array('controller' => 'relat_cadastrados', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Detalhado'), array('controller' => 'relat_detalhados', 'action' => 'index')); ?> </li>
			<li><?php echo $this->Html->link(__('Financeiro'), array('controller' => 'relat_financeiros', 'action' => 'index')); ?> </li>
		</ul>
		<li id="main_menu">Usuários</li>
		<ul>
			<li><?php echo $this->Html->link(__('Listar Usuários'), array('controller' => 'users', 'action' => 'index')); ?> </li>
		</ul>
	</ul>
</div>
